package com.work.straighttalk.adapter;

import android.content.Context;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import com.work.straighttalk.bean.Notifyfriends;
import com.work.straighttalk.R;

import butterknife.Bind;

/**
 * Created by dllo on 16/3/5.
 */
public class NewFriendsHolder extends BaseViewHolder<Notifyfriends> {


    @Bind(R.id.avatar)
    ImageView avatar;
    @Bind(R.id.name)
    TextView name;
    @Bind(R.id.btn_chat)
    Button btnChat;

    public NewFriendsHolder(Context context, ViewGroup root) {
        super(context, root, R.layout.item_search_user);
    }

    @Override
    public void bindData(Notifyfriends user) {
        name.setText(user.getName());
    }
}
